﻿using AppsModel.APIModel;
using MVC_basic.Models;
using AppsModel.Data_Layer.Concrete;
using MVC_basic.Data_Layer.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace AppsApi.Controllers
{
    public class UsersController : ApiController
    {
        public APIUser Get(int id)
        {
            IdbUser db = new dbUser();
            User user = db.getUser(id);
            APIUser apiuser = APIUser.UserToAPI(user);
            return apiuser;
        }
    }
}
